package com.example.inoculations.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 菜单栏实体类
 * </p>
 *
 * @author meirui
 * @since 2022-11-19
 */
@Data
@Accessors(chain = true) //使用链式写法
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer menuid;

    private String menuname;

    private String menupath;

    private String menuico;

    @TableField(exist = false)
    private List<Menu> children;

    /**
     * 父级id
     */
    @TableField("mid")
    private Integer mid;
}
